<!--
 * @Author: lide1202@hotmail.com
 * @Date: 2021-3-13 11:04:24
 * @Last Modified by:   lide1202@hotmail.com
 * @Last Modified time: 2021-3-13 11:04:24
 !-->
<template>
  <div class="uu" >
    <component :is="type" :value="value" v-show="value.setup.display" :ispreview="true" :style="{zIndex: value.position.zIndex}"/>
  </div>
</template>

<script>
import widgetText from "./widgetText.vue";
import widgetImage from "./widgetImage.vue";
import widgetBarStackChart from "./widgetBarStackChart";
import widgetLineStackChart from "./widgetLineStackChart";
import WidgetPiechart from "./widgetPiechart.vue";
import widgetMap from "./widgetMap.vue";
import widgetTable from "./widgetTable.vue";
import widgetList from "./widgetList";

export default {
  name: "WidgetTemp",
  components: {
    widgetText,
    widgetImage,
    widgetBarStackChart,
    widgetLineStackChart,
    WidgetPiechart,
    widgetMap,
    widgetTable,
    widgetList,
  },
  model: {
    prop: "value",
    event: "input"
  },
  props: {
    type: String,
    value: {
      type: [Object],
      default: () => {}
    }
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {}
};
</script>

<style scoped lang="less"></style>
